package com.shg.web.ztest;


import java.util.ArrayList;
import java.util.List;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.shg.service.TypeSearchService;

public class TypeSearchServiceTest {

	private static TypeSearchService typeSearchService;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		ApplicationContext context=new ClassPathXmlApplicationContext("basics-application.xml");
		typeSearchService = (TypeSearchService) context.getBean("typeSearchServiceBean");
	}

	@Test
	public void testAddSearch() {
		try {
			typeSearchService.addSearch();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Test
	public void testMap(){
		List<String> list=new ArrayList<String>();
		list.add("one");
		list.add("two");
		String str = list.toString().replace("[", "").replace("]", "");
		System.out.println(str);
	}
}
